<template>
  <div>
    <van-nav-bar title="新闻" left-text="返回" left-arrow @click-left="$router.back('/')" />
    <div class="text">
      <h3>每天锻炼的9个理由，最多显示两行折行显示</h3>
      <van-text-ellipsis :content="text" rows="4" />
      <div class="pp">
        <img src="../../public/image.png" alt="" />
      </div>
      <div class="oiu">
        <div class="ol">
          <img src="../../public/image copy.png" alt="" />
        </div>
        <div class="ol">
          <img src="../../public/image copy 2.png" alt="" />
        </div>
      </div>
    </div>
    <div class="jjj">
      <van-swipe class="my-swipe" :show-indicators="false">
        <van-swipe-item><img src="../../public/image copy 3.png" alt="" /></van-swipe-item>
        <van-swipe-item><img src="../../public/image copy 3.png" alt="" /></van-swipe-item>
        <van-swipe-item><img src="../../public/image copy 3.png" alt="" /></van-swipe-item>
        <van-swipe-item><img src="../../public/image copy 3.png" alt="" /></van-swipe-item>
      </van-swipe>
      <div class="card">
        <h3>如何锻炼就更好的自己</h3>
        <p>强烈建议欧陆锻炼时中等强度训练，能够更有效提升身体能力。</p>
      </div>
    </div>
  </div>
</template>
<script setup>
const text =
  '锻炼对身体的健质状况有着积极的影响，同时也提升了个体的自我感知和身体形态的自信程度，抗姐训练作为一种锻炼方式，同样能够..'
</script>

<style lang="css" scoped>
.text {
  width: 80%;
  height: 400px;
  background-color: rgb(0, 4, 13);
  margin: 20px auto;
  border-radius: 10px;
  padding: 10px;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
  border-radius: 10px;
}
.text > h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.pp {
  width: 180px;
  height: 190px;
  background-color: blue;
  border-radius: 10px;
  margin-top: 15px;
}
.pp > img {
  width: 180px;
  height: 190px;
  border-radius: 10px;
}
* {
  padding: 0;
  margin: 0;
}
.ol {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  background-color: blue;
  margin-bottom: 10px;
}
.ol img {
  width: 100px;
  height: 90px;
}
.oiu {
  width: 100px;
  height: 190px;
  margin-top: 15px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
}
.my-swipe {
  width: 90%;
  margin: 0 auto;
  height: 185px;
}
.van-swipe-item > img {
  width: 100%;
}
.jjj {
  width: 91%;
  height: 220px;
  margin: 0 auto;
  background-color: rgb(255, 255, 255);
  text-align: left;
}
.card {
  margin-left: 15px;
}
</style>
